using UnityEngine;

public class IS_Bullet_Script : MonoBehaviour
{
    [HideInInspector]
    // 炮弹飞行方向
    public Vector3 direction;
    [Header("炮弹飞行速度")]
    public float moveSpeed = 30f;

    void Start()
    {
        Destroy(gameObject, 3);
    }

    void Update()
    {
        transform.position += direction * Time.deltaTime * moveSpeed;
    }
    
}